package com.cloud.apigateway.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.cloud.netflix.zuul.filters.ZuulProperties;
import org.springframework.stereotype.Component;

/**
 *describe: 通过此配置可以动态刷新zuul的路由
 *
 *@author zhanghaixuan
 *@date 2018/10/02
 **/
@Component
public class ZuulConfig {


	@ConfigurationProperties("zuul")
	@RefreshScope
	public ZuulProperties zuulProperties(){
		return new ZuulProperties();
	}
}
